<?php

namespace app\model;

use think\Model;

class Example extends Model
{
    public static function getThree()
    {
        return self::where('status', 1)
            ->where('isdelete', 0)
            ->limit(3)
            ->select();
    }

    public function getPosterAttr($v)
    {
        return config('site.imgUrl') . $v;
    }
}
